import React from 'react';
import ReactDOM from 'react-dom';
import {BrowserRouter as Router,Route} from 'react-router-dom';
import './index.css';
import Backend from './view/Backend/Backend';
import Recommended from './view/Recommended/Recommended'
import Frontend from './view/Frontend/Frontend'
import android from './view/Android/android'
import IOS from './view/IOS/IOS'
import AI from './view/AI/AI'
import Freebie from './view/Freebie/Freebie'
import Career from './view/Career/Career'
import Article from './view/Article/Article'
import BackendTag1 from './view/Backend/后端'
import BackendTag2 from './view/Backend/Java'
import BackendTag3 from './view/Backend/Python'
import BackendTag4 from './view/Backend/Go'
import BackendTag5 from './view/Backend/MySQL'
import BackendTag6 from './view/Backend/算法'
import BackendTag7 from './view/Backend/数据库'
import BackendTag8 from './view/Backend/Redis'
import BackendTag9 from './view/Backend/Spring Boot'
import BackendTag10 from './view/Backend/Spring'
import BackendTag11 from './view/Backend/Linux'
import BackendTag12 from './view/Backend/Kubernetes'
import BackendTag13 from './view/Backend/面试'
import BackendTag14 from './view/Backend/架构'
import BackendTag15 from './view/Backend/Spring Cloud'
import FrontendTag1 from './view/Frontend/前端'
import FrontendTag2 from './view/Frontend/JavaScript'
import FrontendTag3 from './view/Frontend/Vue.js'
import FrontendTag4 from './view/Frontend/React.js'
import FrontendTag5 from './view/Frontend/CSS'
import FrontendTag6 from './view/Frontend/面试'
import FrontendTag7 from './view/Frontend/算法'
import FrontendTag8 from './view/Frontend/Webpack'
import FrontendTag9 from './view/Frontend/Node.js'
import FrontendTag10 from './view/Frontend/TypeScript'
import FrontendTag11 from './view/Frontend/微信小程序'
import FrontendTag12 from './view/Frontend/Flutter'
import FrontendTag13 from './view/Frontend/HTML'
import FrontendTag14 from './view/Frontend/浏览器'
import FrontendTag15 from './view/Frontend/WebGL'
import AndroidTag1 from './view/Android/Android1'
import AndroidTag2 from './view/Android/前端'
import AndroidTag3 from './view/Android/Flutter'
import AndroidTag4 from './view/Android/Java'
import AndroidTag5 from './view/Android/Kotlin'
import AndroidTag6 from './view/Android/Android Jetpack'
import AndroidTag7 from './view/Android/设计模式'
import AndroidTag8 from './view/Android/架构'
import AndroidTag9 from './view/Android/gradle'
import AndroidTag10 from './view/Android/面试'
import AndroidTag11 from './view/Android/性能优化'
import AndroidTag12 from './view/Android/OpenCV'
import AndroidTag13 from './view/Android/算法'
import AndroidTag14 from './view/Android/源码'
import AndroidTag15 from './view/Android/音视频开发'
import IOSTag1 from './view/IOS/IOS1'
import IOSTag2 from './view/IOS/前端'
import IOSTag3 from './view/IOS/Swift'
import IOSTag4 from './view/IOS/Objective-C'
import IOSTag5 from './view/IOS/Flutter'
import IOSTag6 from './view/IOS/SwiftUI'
import IOSTag7 from './view/IOS/面试'
import IOSTag8 from './view/IOS/架构'
import IOSTag9 from './view/IOS/逆向'
import IOSTag10 from './view/IOS/RxSwift'
import IOSTag11 from './view/IOS/macOS'
import IOSTag12 from './view/IOS/安全'
import IOSTag13 from './view/IOS/源码'
import IOSTag14 from './view/IOS/算法'
import IOSTag15 from './view/IOS/OpenGL'
import AITag1 from './view/AI/人工智能'
import AITag2 from './view/AI/算法'
import AITag3 from './view/AI/MATLAB'
import AITag4 from './view/AI/机器学习'
import AITag5 from './view/AI/深度学习'
import AITag6 from './view/AI/后端'
import AITag7 from './view/AI/大数据'
import AITag8 from './view/AI/计算机视觉'
import AITag9 from './view/AI/Python'
import AITag10 from './view/AI/OpenCV'
import AITag11 from './view/AI/NLP'
import AITag12 from './view/AI/物联网'
import AITag13 from './view/AI/数据分析'
import AITag14 from './view/AI/百度'
import AITag15 from './view/AI/数据库'
import FreebieTag1 from './view/Freebie/前端'
import FreebieTag2 from './view/Freebie/数据挖掘'
import FreebieTag3 from './view/Freebie/GitHub'
import FreebieTag4 from './view/Freebie/后端'
import FreebieTag5 from './view/Freebie/Python'
import FreebieTag6 from './view/Freebie/开源'
import FreebieTag7 from './view/Freebie/Git'
import FreebieTag8 from './view/Freebie/Docker'
import FreebieTag9 from './view/Freebie/Linux'
import FreebieTag10 from './view/Freebie/Unity3D'
import FreebieTag11 from './view/Freebie/云计算'
import FreebieTag12 from './view/Freebie/程序员'
import FreebieTag13 from './view/Freebie/Java'
import FreebieTag14 from './view/Freebie/Rust'
import FreebieTag15 from './view/Freebie/游戏开发'
import CareerTag1 from './view/Career/程序员'
import CareerTag2 from './view/Career/算法'
import CareerTag3 from './view/Career/后端'
import CareerTag4 from './view/Career/前端'
import CareerTag5 from './view/Career/Python'
import CareerTag6 from './view/Career/面试'
import CareerTag7 from './view/Career/Java'
import CareerTag8 from './view/Career/测试'
import CareerTag9 from './view/Career/LeetCode'
import CareerTag10 from './view/Career/GitHub'
import CareerTag11 from './view/Career/代码规范'
import CareerTag12 from './view/Career/Linux'
import CareerTag13 from './view/Career/MATLAB'
import CareerTag14 from './view/Career/架构'
import CareerTag15 from './view/Career/C++'
import ArticleTag1 from './view/Article/程序员'
import ArticleTag2 from './view/Article/前端'
import ArticleTag3 from './view/Article/后端'
import ArticleTag4 from './view/Article/笔记'
import ArticleTag5 from './view/Article/设计模式'
import ArticleTag6 from './view/Article/算法'
import ArticleTag7 from './view/Article/产品'
import ArticleTag8 from './view/Article/面试'
import ArticleTag9 from './view/Article/数据库'
import ArticleTag10 from './view/Article/测试'
import ArticleTag11 from './view/Article/Java'
import ArticleTag12 from './view/Article/Kubernetes'
import ArticleTag13 from './view/Article/macOS'
import ArticleTag14 from './view/Article/Flink'
import ArticleTag15 from './view/Article/架构'
import {Post} from './view/Post'
import {History} from './view/History'
import {Search} from './view/Search'
ReactDOM.render(
  <Router>
    <Route path='/' exact component={Recommended} ></Route>
    <Route path='/history' component={History}></Route>
    <Route path='/search' component={Search}></Route>
    <Route path='/Backend' exact component={Backend}></Route>
    <Route path='/Backend/后端'  component={BackendTag1}></Route>
    <Route path='/Backend/Java'  component={BackendTag2}></Route>
    <Route path='/Backend/Python'  component={BackendTag3}></Route>
    <Route path='/Backend/Go'  component={BackendTag4}></Route>
    <Route path='/Backend/MySQL'  component={BackendTag5}></Route>
    <Route path='/Backend/算法'  component={BackendTag6}></Route>
    <Route path='/Backend/数据库'  component={BackendTag7}></Route>
    <Route path='/Backend/Redis'  component={BackendTag8}></Route>
    <Route path='/Backend/Spring Boot'  component={BackendTag9}></Route>
    <Route path='/Backend/Spring'  component={BackendTag10}></Route>
    <Route path='/Backend/Linux'  component={BackendTag11}></Route>
    <Route path='/Backend/Kubernetes'  component={BackendTag12}></Route>
    <Route path='/Backend/面试'  component={BackendTag13}></Route>
    <Route path='/Backend/架构'  component={BackendTag14}></Route>
    <Route path='/Backend/Spring Cloud'  component={BackendTag15}></Route>

    <Route path='/Frontend' exact component={Frontend}></Route>
    <Route path='/Frontend/前端'  component={FrontendTag1}></Route>
    <Route path='/Frontend/JavaScript'  component={FrontendTag2}></Route>
    <Route path='/Frontend/Vue.js'  component={FrontendTag3}></Route>
    <Route path='/Frontend/React.js'  component={FrontendTag4}></Route>
    <Route path='/Frontend/CSS'  component={FrontendTag5}></Route>
    <Route path='/Frontend/面试'  component={FrontendTag6}></Route>
    <Route path='/Frontend/算法'  component={FrontendTag7}></Route>
    <Route path='/Frontend/Webpack'  component={FrontendTag8}></Route>
    <Route path='/Frontend/Node.js'  component={FrontendTag9}></Route>
    <Route path='/Frontend/TypeScript'  component={FrontendTag10}></Route>
    <Route path='/Frontend/微信小程序'  component={FrontendTag11}></Route>
    <Route path='/Frontend/Flutter'  component={FrontendTag12}></Route>
    <Route path='/Frontend/HTML'  component={FrontendTag13}></Route>
    <Route path='/Frontend/浏览器'  component={FrontendTag14}></Route>
    <Route path='/Frontend/WebGL'  component={FrontendTag15}></Route>

    <Route path='/android' exact component={android}></Route>
    <Route path='/android/Android'  component={AndroidTag1}></Route>
    <Route path='/android/前端'  component={AndroidTag2}></Route>
    <Route path='/android/Flutter'  component={AndroidTag3}></Route>
    <Route path='/android/Java'  component={AndroidTag4}></Route>
    <Route path='/android/Kotlin'  component={AndroidTag5}></Route>
    <Route path='/android/Android Jetpack'  component={AndroidTag6}></Route>
    <Route path='/android/设计模式'  component={AndroidTag7}></Route>
    <Route path='/android/架构'  component={AndroidTag8}></Route>
    <Route path='/android/gradle'  component={AndroidTag9}></Route>
    <Route path='/android/面试'  component={AndroidTag10}></Route>
    <Route path='/android/性能优化'  component={AndroidTag11}></Route>
    <Route path='/android/OpenCV'  component={AndroidTag12}></Route>
    <Route path='/android/算法'  component={AndroidTag13}></Route>
    <Route path='/android/源码'  component={AndroidTag14}></Route>
    <Route path='/android/音视频开发'  component={AndroidTag15}></Route>

    <Route path='/IOS' exact component={IOS}></Route>
    <Route path='/IOS/iOS'  component={IOSTag1}></Route>
    <Route path='/IOS/前端'  component={IOSTag2}></Route>
    <Route path='/IOS/Swift'  component={IOSTag3}></Route>
    <Route path='/IOS/Objective-C'  component={IOSTag4}></Route>
    <Route path='/IOS/Flutter'  component={IOSTag5}></Route>
    <Route path='/IOS/SwiftUI'  component={IOSTag6}></Route>
    <Route path='/IOS/面试'  component={IOSTag7}></Route>
    <Route path='/IOS/架构'  component={IOSTag8}></Route>
    <Route path='/IOS/逆向'  component={IOSTag9}></Route>
    <Route path='/IOS/RxSwift'  component={IOSTag10}></Route>
    <Route path='/IOS/macOS'  component={IOSTag11}></Route>
    <Route path='/IOS/安全'  component={IOSTag12}></Route>
    <Route path='/IOS/源码'  component={IOSTag13}></Route>
    <Route path='/IOS/算法'  component={IOSTag14}></Route>
    <Route path='/IOS/OpenGL'  component={IOSTag15}></Route>

    <Route path='/AI' exact component={AI}></Route>
    <Route path='/AI/人工智能'  component={AITag1}></Route>
    <Route path='/AI/算法'  component={AITag2}></Route>
    <Route path='/AI/MATLAB'  component={AITag3}></Route>
    <Route path='/AI/机器学习'  component={AITag4}></Route>
    <Route path='/AI/深度学习'  component={AITag5}></Route>
    <Route path='/AI/后端'  component={AITag6}></Route>
    <Route path='/AI/大数据'  component={AITag7}></Route>
    <Route path='/AI/计算机视觉'  component={AITag8}></Route>
    <Route path='/AI/Python'  component={AITag9}></Route>
    <Route path='/AI/OpenCV'  component={AITag10}></Route>
    <Route path='/AI/NLP'  component={AITag11}></Route>
    <Route path='/AI/物联网'  component={AITag12}></Route>
    <Route path='/AI/数据分析'  component={AITag13}></Route>
    <Route path='/AI/百度'  component={AITag14}></Route>
    <Route path='/AI/数据库'  component={AITag15}></Route>

    <Route path='/Freebie' exact component={Freebie}></Route>
    <Route path='/Freebie/前端'  component={FreebieTag1}></Route>
    <Route path='/Freebie/数据挖掘'  component={FreebieTag2}></Route>
    <Route path='/Freebie/GitHub'  component={FreebieTag3}></Route>
    <Route path='/Freebie/后端'  component={FreebieTag4}></Route>
    <Route path='/Freebie/Python'  component={FreebieTag5}></Route>
    <Route path='/Freebie/开源'  component={FreebieTag6}></Route>
    <Route path='/Freebie/Git'  component={FreebieTag7}></Route>
    <Route path='/Freebie/Docker'  component={FreebieTag8}></Route>
    <Route path='/Freebie/Linux'  component={FreebieTag9}></Route>
    <Route path='/Freebie/Unity3D'  component={FreebieTag10}></Route>
    <Route path='/Freebie/云计算'  component={FreebieTag11}></Route>
    <Route path='/Freebie/程序员'  component={FreebieTag12}></Route>
    <Route path='/Freebie/Java'  component={FreebieTag13}></Route>
    <Route path='/Freebie/Rust'  component={FreebieTag14}></Route>
    <Route path='/Freebie/游戏开发'  component={FreebieTag15}></Route>

    <Route path='/Career' exact component={Career}></Route>
    <Route path='/Career/程序员'  component={CareerTag1}></Route>
    <Route path='/Career/算法'  component={CareerTag2}></Route>
    <Route path='/Career/后端'  component={CareerTag3}></Route>
    <Route path='/Career/前端'  component={CareerTag4}></Route>
    <Route path='/Career/Python'  component={CareerTag5}></Route>
    <Route path='/Career/面试'  component={CareerTag6}></Route>
    <Route path='/Career/Java'  component={CareerTag7}></Route>
    <Route path='/Career/测试'  component={CareerTag8}></Route>
    <Route path='/Career/LeetCode'  component={CareerTag9}></Route>
    <Route path='/Career/GitHub'  component={CareerTag10}></Route>
    <Route path='/Career/代码规范'  component={CareerTag11}></Route>
    <Route path='/Career/Linux'  component={CareerTag12}></Route>
    <Route path='/Career/MATLAB'  component={CareerTag13}></Route>
    <Route path='/Career/架构'  component={CareerTag14}></Route>
    <Route path='/Career/C++'  component={CareerTag15}></Route>

    <Route path='/Article' exact component={Article}></Route>
    <Route path='/Article/程序员'  component={ArticleTag1}></Route>
    <Route path='/Article/前端'  component={ArticleTag2}></Route>
    <Route path='/Article/后端'  component={ArticleTag3}></Route>
    <Route path='/Article/笔记'  component={ArticleTag4}></Route>
    <Route path='/Article/设计模式'  component={ArticleTag5}></Route>
    <Route path='/Article/算法'  component={ArticleTag6}></Route>
    <Route path='/Article/产品'  component={ArticleTag7}></Route>
    <Route path='/Article/面试'  component={ArticleTag8}></Route>
    <Route path='/Article/数据库'  component={ArticleTag9}></Route>
    <Route path='/Article/测试'  component={ArticleTag10}></Route>
    <Route path='/Article/Java'  component={ArticleTag11}></Route>
    <Route path='/Article/Kubernetes'  component={ArticleTag12}></Route>
    <Route path='/Article/macOS'  component={ArticleTag13}></Route>
    <Route path='/Article/Flink'  component={ArticleTag14}></Route>
    <Route path='/Article/架构'  component={ArticleTag15}></Route>

    <Route path='/post/:article_id' component={Post} ></Route>    
    
  </Router>,
  document.getElementById('root')
);

